﻿using System;
using System.Collections.Generic;
using System.Web;
using LLFM.CAT.Model;

/// <summary>
/// Summary description for AdminPage
/// </summary>
public class AdminPage : System.Web.UI.Page
{
    protected void Page_Init(object sender, EventArgs e)
    {
        try
        {
            CurrentUser = (M_User)HttpContext.Current.Session[Common.CommonConfig.AdminSessionString];
        }
        catch
        {
            CurrentUser = null;
        }
        if (CurrentUser == null)
        {
            Response.Redirect(Common.CommonConfig.AdminLogout);
        }
    }

    public M_User CurrentUser
    {
        get { return _currentUser; }
        set { _currentUser = value; }
    }

    private M_User _currentUser;
}